//
//  SSCollectionDataTool.h
//  Travel_World
//
//  Created by dlios on 15/10/16.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

typedef NS_ENUM(NSUInteger, SelectInTable)
{
    InTable,
    NotInTable,
    SelectError
};

typedef enum : NSUInteger {
    DiscountModel,
    CountryModel,
    CityModel,
} ModelType;

@interface SSCollectionDataTool : NSObject

{
    sqlite3 *dbPoint;
}


+ (SSCollectionDataTool *)shareSSCollectionDataToolWithModelType:(ModelType)model;
- (void)createTabelWithModelType:(ModelType)modelType;

- (SelectInTable)isIntable:(id)model;

- (void)inserCollectionData:(id)model;

- (void)deleteCollectoinData:(id)model modelType:(ModelType)modelType;

- (NSMutableArray *)selectAllCollectionDataModelType:(ModelType)modelType;



@end
